﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="KPIS.GERP.ESS.APP.App_UI.Forms.ChangePassword" %>

<asp:Content ID="Content2" runat="server" contentplaceholderid="head">
    <title>เปลี่ยนรหัสผ่าน</title>
    <link href="../Styles/StyleSheet.css" rel="stylesheet" type="text/css" />
    <script language="JavaScript" src="../Scripts/Common.js" type="text/jscript"></script>
    <script language="JavaScript" src="../Scripts/DatePicker.js" type="text/jscript"></script>
</asp:Content>

<asp:Content 
    ID="Content1" 
    runat="server" 
    contentplaceholderid="ContentPlaceHolder1">  
    
   <script type="text/javascript">
   </script>
   
     <link href="../Styles/CssClass.css" rel="cssclass" type="text/css" /> 
   
       <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">        
            <script type="text/javascript">

                function onTextChange(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
                }
                function MessageAlert(strMessageAlert) {
                    window.alert(strMessageAlert);
                }

            </script>
        
    </telerik:RadCodeBlock>
  
  <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="cmbUpdate">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelFilter" LoadingPanelID="RadAjaxLoadingPanel2" />                    
                    <telerik:AjaxUpdatedControl ControlID="cmbUpdate" LoadingPanelID="RadAjaxLoadingPanel2" />                    
                    <telerik:AjaxUpdatedControl ControlID="lblOldPassword" LoadingPanelID="RadAjaxLoadingPanel2" />
                    <telerik:AjaxUpdatedControl ControlID="lblConfirmPassword" LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        
    </telerik:RadAjaxManagerProxy>

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>          
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
    <telerik:RadWindow 
        id="ProjectDtls" 
        runat="server"
        showcontentduringload="false"
        VisibleStatusbar="false"
        title=""
        width="800px"
        Height="600px"        
        Modal="true"
        behaviors="Close">
    </telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<div class="moduleDivSlim1000">
<div class="moduleDivBottom1000">

    <asp:Panel ID="PanelFilter" runat="server" Width="950px" Height = "370px" ScrollBars="Auto">
        <table align = "center" width = "850px">
                <tr>
                    <td align="right" >
                        &nbsp;</td>
                    <td>
                        &nbsp;&nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        รหัสผ่านเดิม :</td>
                    <td>
                        <telerik:RadTextBox ID="txtOldPassword" Runat="server" MaxLength="20" 
                            TextMode="Password" width="150px">
                        </telerik:RadTextBox>
                        <asp:Label ID="Label2" runat="server" ForeColor="Red" Text=" * "></asp:Label>
                        <asp:RequiredFieldValidator runat="server" 
                                ID="reqOldPassword" 
                                ControlToValidate="txtOldPassword"
                                ErrorMessage="*" >
                         </asp:RequiredFieldValidator>    
                        &nbsp;<asp:Label ID="lblOldPassword" runat="server" Font-Bold="True" 
                            ForeColor="Red" Visible="False">รหัสผ่านเดิมไม่ถูกต้อง</asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" >
                        รหัสผ่านใหม่ :</td>
                    <td>
                        <telerik:RadTextBox ID="txtNewPassword" Runat="server" TextMode="Password" 
                            width="150px" MaxLength="20">
                        </telerik:RadTextBox>
                        <asp:Label ID="Label1" runat="server" ForeColor="Red" Text=" * "></asp:Label>
                        <asp:RequiredFieldValidator runat="server" 
                                ID="reqNewPassword" 
                                ControlToValidate="txtNewPassword"
                                ErrorMessage="*" >
                         </asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" >
                        ยืนยันรหัสผ่านใหม่ :</td>
                    <td>
                        <telerik:RadTextBox ID="txtConfirmPassword" Runat="server" TextMode="Password" 
                            width="150px" MaxLength="20">
                        </telerik:RadTextBox>
                        <asp:Label ID="Label3" runat="server" ForeColor="Red" Text=" * "></asp:Label>
                        <asp:RequiredFieldValidator runat="server" 
                                ID="reqConfirmPassword" 
                                ControlToValidate="txtConfirmPassword"
                                ErrorMessage="*" >
                         </asp:RequiredFieldValidator>
                        &nbsp;<asp:Label ID="lblConfirmPassword" runat="server" Font-Bold="True" 
                            ForeColor="Red" Visible="False"></asp:Label>
                    </td>
                </tr>
                <tr style="height: 10px">
                    <td align="right"></td>
                    <td></td>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="cmdUpdate" runat="server" Text="บันทึกการเปลี่ยนรหัสผ่าน" Width="160px" 
                            onclick="cmdUpdate_Click" /> 
                    </td>
                </tr>
            </table>
    </asp:Panel>
</div> 
</div>
     
</asp:Content>